package com.example.adminvue.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.adminvue.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {
    public List<User> selectUserList(User sysUser);

    public int deleteUserByIds(Long[] userIds);

    public int resetUserPwd(@Param("userName") String userName, @Param("password") String password);

    /**
     * 修改用户头像
     *
     * @param userName 用户名
     * @param avatar 头像地址
     * @return 结果
     */
    public int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar);
}
